var tableIns;
var tableIns1;

layui.extend().use(['jquery','layer','form','table','util','laydate'],function (){
    var $ = layui.jquery,
        layer = layui.layer,
        form = layui.form,
        table = layui.table,
        util = layui.util,
        laydate = layui.laydate;

    tableIns = table.render({
        elem: '#userTable',
        url: '/warehouse/selrecord',
        toolbar: '#userToolBar',
        // height: 'full-200',
        cellMinWidth: 150,
        page: 1,
        limits: [10,20,30],
        limit: 10,
        cols: [[
            // {field: 'jiluid', title: 'ID', width: '10%',align: 'center'},
            {field: 'jiluname', title: '药品名称', width: '15%',align: 'center'},
            {field: 'jilupihao', title: '药品批号', width: '15%',align: 'center'},
            {field: 'jilutime', title: '操作时间', width: '20%',align: 'center'},
            {field: 'jilutype', title: '操作类型', width: '20%',align: 'center'},
            {field: 'jiluPeopleName', title: '经办人', width: '10%',align: 'center'},
            {field: 'warehouse', title: '仓库', width: '10%',align: 'center'},
            {field: 'jilunumber', title: '数量', width: '10%',align: 'center'}
        ]]
    });

    $("#doSearch").click(function(){
        var params=$("#searchFrm").serialize();
        tableIns.reload({
            url:"/warehouse/selrecord?"+params
        })
    });
});